package github.kawaiior.yuanchuxiuzhen.common.herb;

import github.kawaiior.yuanchuxiuzhen.util.EntityUtil;
import net.minecraft.entity.player.PlayerEntity;
import net.minecraft.potion.Effects;
import net.minecraft.util.text.TranslationTextComponent;

public class HerbEffect_6 implements IHerbEffect{

    @Override
    public void onPlayerUse(PlayerEntity player, byte fireLevel, byte randomLevel) {
        EntityUtil.addEffect(player, Effects.HEALTH_BOOST, 30+fireLevel*30+randomLevel*5);
    }

    @Override
    public TranslationTextComponent getHerbEffectTextComponent(byte fireLevel, byte randomLevel) {
        return new TranslationTextComponent("pellet.effect.6", 30+fireLevel*30+randomLevel*5);
    }
}